from flask import Blueprint
from flask_restful import Api

from app.v2.view.UserDelete import UserDelete
from app.v2.view.UserInsert import UserInsert
from app.v2.view.UserJson import UserJson
from app.v2.view.UserQueryNative import UserQueryNative
from app.v2.view.UserQueryPage import UserQueryPage
from app.v2.view.UserUpdate import UserUpdate


v2_blueprint = Blueprint('v2', __name__)
v2_blueprint_rest = Api(v2_blueprint)

v2_blueprint_rest.add_resource(UserInsert, "/userInsert")
v2_blueprint_rest.add_resource(UserUpdate, "/userUpdate")
v2_blueprint_rest.add_resource(UserQueryPage, "/userQueryPage")
v2_blueprint_rest.add_resource(UserQueryNative, "/userQueryNative")
v2_blueprint_rest.add_resource(UserDelete, "/userDelete")
v2_blueprint_rest.add_resource(UserJson, "/userJson")



